home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Talking Telnet / source / Speech / speech.proto.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-22  |  1.0 KB  |  53 lines  |  [TEXT/CWIE]

  1. #ifndef    _speech_proto_h_
  2. #define    _speech_proto_h_
  3.  
  4.  
  5. #include    <Menus.h>
  6. #include    <Speech.h>
  7. #include    <Windows.h>
  8.  
  9.  
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif    /* __cplusplus */
  13.  
  14.  
  15. #define    SPEECH
  16.  
  17.  
  18. enum {
  19.     kSpeechIndStringId = 23254
  20. };
  21.  
  22.  
  23. extern Boolean            gCanSpeak;
  24. extern volatile Boolean    gDoneSpeaking;
  25. extern short            gSelectedVoiceIndex;
  26. extern short            gNumberVoices;
  27. extern short            gSpeakingVoiceIndex;
  28. extern Boolean            gSpeakSelectionEnabled;
  29. extern SpeechChannel    gSpeechChannel;
  30. extern OSErr            gSpeechErrors[];
  31. extern Handle            gSpeechText;
  32. extern VoiceSpec **        gVoices;
  33.  
  34.  
  35. void AdjustSpeechMenu(Boolean selected);
  36. Boolean BuildSpeechMenu(MenuHandle voicesMenu);
  37. void ChangeVoice(short voiceIndex);
  38. void DoSpeechError(OSErr err);
  39. Boolean EqualVoiceSpec(const VoiceSpec * voice1, const VoiceSpec * voice2);
  40. void HandleSpeechMenu(short item);
  41. void SpeakSelection(WindowPtr window);
  42. void StopSpeaking(void);
  43.  
  44. void AnnoyingSpeechMode(short w);
  45. void SpeakStream(unsigned char *ptr, short len);
  46.  
  47.  
  48. #ifdef __cplusplus
  49. }
  50. #endif    /* __cplusplus */
  51.  
  52. #endif    /* _speech_proto_h_ */
  53.